package org.dreamwork.jasmine2.restful;

/**
 * Created with IntelliJ IDEA.
 * User: seth.yang
 * Date: 14-11-17
 * Time: 下午3:45
 */
public interface IRestfulAPI<P, R> {
    R get (P parameter) throws RestfulAPIException;
    R post (P parameter) throws RestfulAPIException;
    R put (P parameter) throws RestfulAPIException;
    R delete (P parameter) throws RestfulAPIException;
    R head (P parameter) throws RestfulAPIException;
    R trace (P parameter) throws RestfulAPIException;
    R connect (P parameter) throws RestfulAPIException;
    RestfulAPIContext getContext () throws RestfulAPIException;
}